-- GENERATED SPELL FOR [Bloodmaul Skirmisher] --


function spell0_19948(pUnit, Event) --@Bloodmaul Buzz,Self--
pUnit:FullCastSpellOnTarget(34932,pUnit)
pUnit:RegisterEvent('Sorts_19948', 20251, 1)
end

function spell1_19948(pUnit, Event) --@Bloodmaul Rage,Self--
pUnit:FullCastSpellOnTarget(37786,pUnit)
pUnit:RegisterEvent('Sorts_19948', 9000, 1)
end

function spell2_19948(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(34802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19948', 6334, 1)
end

function Sorts_19948(pUnit, Event)
local choix_sorts_19948 = math.random(0, 2)
if choix_sorts_19948 == 0 then
pUnit:RegisterEvent('spell0_19948', 1, 1)
end
if choix_sorts_19948 == 1 then
pUnit:RegisterEvent('spell1_19948', 1, 1)
end
if choix_sorts_19948 == 2 then
pUnit:RegisterEvent('spell2_19948', 1, 1)
end
end

function mob19948_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19948', math.random(1500, 3000), 1)
end

function mob19948_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19948_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19948_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19948, 1, 'mob19948_Action')
RegisterUnitEvent(19948, 2, 'mob19948_Leave')
RegisterUnitEvent(19948, 3, 'mob19948_Kill')
RegisterUnitEvent(19948, 4, 'mob19948_Die')
